def printTable(list):
  l=0
  for i in list:
    for j in i:
      if len(j)>l:
        l=len(j)
  for i in list:
    s=''
    for j in i:
      s=s+j.rjust(l)+' '
    print(s)
